using System;
using System.Runtime.Serialization;
namespace Microsoft.Phone.Controls.Maps
{
	[DataContract(Namespace = "http://dev.virtualearth.net/webservices/v1/common")]
	public class Credentials
	{
		[DataMember]
		public string ApplicationId
		{
			get;
			set;
		}
		public override bool Equals(object obj)
		{
			Credentials credentials = obj as Credentials;
			return credentials != null && this == credentials;
		}
		public override int GetHashCode()
		{
			return this.ApplicationId.GetHashCode();
		}
		public override string ToString()
		{
			if (!string.IsNullOrEmpty(this.ApplicationId))
			{
				return this.ApplicationId;
			}
			return string.Empty;
		}
	}
}
